home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / PID / PIDDoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-17  |  1.6 KB  |  85 lines

  1. // PIDDoc.cpp : implementation of the CPIDDoc class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "PID.h"
  6.  
  7. #include "PIDDoc.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CPIDDoc
  17.  
  18. IMPLEMENT_DYNCREATE(CPIDDoc, CDocument)
  19.  
  20. BEGIN_MESSAGE_MAP(CPIDDoc, CDocument)
  21.     //{{AFX_MSG_MAP(CPIDDoc)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25. END_MESSAGE_MAP()
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. // CPIDDoc construction/destruction
  29.  
  30. CPIDDoc::CPIDDoc()
  31. {
  32.     // TODO: add one-time construction code here
  33.  
  34. }
  35.  
  36. CPIDDoc::~CPIDDoc()
  37. {
  38. }
  39.  
  40. BOOL CPIDDoc::OnNewDocument()
  41. {
  42.     if (!CDocument::OnNewDocument())
  43.         return FALSE;
  44.  
  45.     // TODO: add reinitialization code here
  46.     // (SDI documents will reuse this document)
  47.  
  48.     return TRUE;
  49. }
  50.  
  51.  
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CPIDDoc serialization
  55.  
  56. void CPIDDoc::Serialize(CArchive& ar)
  57. {
  58.     if (ar.IsStoring())
  59.     {
  60.         // TODO: add storing code here
  61.     }
  62.     else
  63.     {
  64.         // TODO: add loading code here
  65.     }
  66. }
  67.  
  68. /////////////////////////////////////////////////////////////////////////////
  69. // CPIDDoc diagnostics
  70.  
  71. #ifdef _DEBUG
  72. void CPIDDoc::AssertValid() const
  73. {
  74.     CDocument::AssertValid();
  75. }
  76.  
  77. void CPIDDoc::Dump(CDumpContext& dc) const
  78. {
  79.     CDocument::Dump(dc);
  80. }
  81. #endif //_DEBUG
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84. // CPIDDoc commands
  85.